package com.taowan.xunbaozl.morning_speak.design_pattern.pre;

/**
 * Created by 杨观回 on 2016/2/25 0025.
 * 接口的适配器模式
 */
public class InterfaceAdapter extends ExampleAdapter {
    @Override
    public void example2() {
        super.example2();
        System.out.println("InterfaceAdapter example2");
    }
}


interface Example1 {
    void example1();

    void example2();

    void example3();

    void example4();
}

/**
 * 由于Example1接口非常多，所以进行空实现
 */
class ExampleAdapter implements Example1 {
    @Override
    public void example1() {

    }

    @Override
    public void example2() {

    }

    @Override
    public void example3() {

    }

    @Override
    public void example4() {

    }
}
